package com.hmall.mapper;

import com.hmall.model.MallProductPrice;
import com.hmall.util.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MallProductPriceMapper extends MyMapper<MallProductPrice> {
    List<MallProductPrice> selectByCode(@Param("code") String code,@Param("pageStart") Integer pageStart,@Param("pageSize") Integer pageSize);

    List<MallProductPrice> selectByModelAndGrade(@Param("model") String model,@Param("twisting") String twisting,@Param("grade") String grade);

    Integer selectViewCount();
}